<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>分享的仓</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<!--标准mui.css-->
		<link rel="stylesheet" href="/public/css/mui.min.css">
		<!--App自定义的css-->
		<link rel="stylesheet" type="text/css" href="/public/css/app.css">
		<link rel="stylesheet" type="text/css" href="/public/css/icon.css">
		<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
	</head>
	<body class="mui-ios mui-ios-10 mui-ios-10-3">
		<header class="mui-bar mui-bar-nav">
			<a onclick="dump('<?php echo U('index/index');?>')" class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">分享的仓</h1>
			<script>
				//url跳转
                function dump(url) {
                    location.href=url
                }
			</script>
		</header>

		<div class="mui-bar mui-bar-tab">
			<a jump_url="<?php echo U('Storehouse/join');?>" _class="a" class="mui-tab-item mui-active" href="http://www.baidu.com">
			<span class="mui-icon mui-icon-home"></span>
			<span  class="mui-tab-label">分享的仓</span>
			</a>

			<a _class="a" class="mui-tab-item" href="http://www.baidu.com">
				<span  class="mui-icon mui-icon-email"></span>
				<span  class="mui-tab-label">统计</span>
			</a>
			<a jump_url="<?php echo U('My/indexSet');?>" _class="a"   class="mui-tab-item" href="http://www.baidu.com" >
			<span    class="mui-icon mui-icon-contact"></span>
			<span   class="mui-tab-label">我的</span>
			</a>
		</div>
		<script>
            setInterval(function(){
                host = window.location.host;
                $('[_class="a"]').each(function()
				{
				    //如果是选中状态
				    if($(this).attr('class') == 'mui-tab-item mui-active')
					{
					    //比对跳转url 和当前url 是否相同
						//不相同跳转
						//跳转url
                        var url = 'http://'+host+$(this).attr('jump_url')
						//alert(url)
						//当前url
						var durl = window.location.href;
                        if(url != durl)
						{
						    //alert(url)
						    location.href = url
						}
					}

				})

            },100);
		</script>
		<div class="mui-content">
			<div id="tabbar" class="mui-control-content mui-active">
				<div  class="mui-control-content mui-active">
					<form class="mui-input-group">

						<div class="mui-input-row h50 pr">
							<i  class="mui-icon-cang mui-jm   mui-pull-left"></i>
							<label _jump="<?php echo U('joinXinXi');?>" class="pl40" >加盟信息</label>
						</div>
						<div class="mui-input-row h50 pr">
							<i  class="mui-icon-cang my-jm   mui-pull-left"></i>
							<label _jump="<?php echo U('mycangku');?>" class="pl40" >我的仓库</label>
							</select>
						</div>
						<div class="mui-input-row h50 pr">
							<i class="mui-icon-cang kf-jm   mui-pull-left"></i>
							<label class="pl40" >联系客服</label>
						</div>
					</form>
					<p class="kf">联系客服电话：400-1188-999</p>
				</div>
			</div>
		<!--	<div id="tabbar-with-chat" class="mui-control-content">
				<div class="title">这是div模式选项卡中的第2个子页面，该页面展示一个消息列表</div>
				
				<ul class="mui-table-view mui-table-view-chevron">
					<li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 1</a></li>
					<li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 2</a></li>
					<li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 3</a></li>
					<li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 4</a></li>
					<li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 5</a></li>
					<li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 6</a></li>
					<li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 7</a></li>
					<li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 8</a></li>
					<li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 9</a></li>
					<li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 10</a></li>
					<li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 11</a></li>
					<li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 12</a></li>
					<li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 13</a></li>
					<li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 14</a></li>
					<li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 15</a></li>
					<li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 16</a></li>
					<li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 17</a></li>
					<li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 18</a></li>
					<li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 19</a></li>
					<li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 20</a></li>
				</ul>
				
			</div>
			<div id="tabbar-with-contact" class="mui-control-content">
				<div class="title">这是div模式选项卡中的第3个子页面，该页面展示一个通讯录示例.</div>
				<ul class="mui-table-view mui-table-view-striped mui-table-view-condensed">
				<li class="mui-table-view-cell">
					<div class="mui-slider-cell">
						<div class="oa-contact-cell mui-table">
							<div class="oa-contact-avatar mui-table-cell">
								<img src="/public/images/60x60.gif">
							</div>
							<div class="oa-contact-content mui-table-cell">
								<div class="mui-clearfix">
									<h4 class="oa-contact-name">叶文洁</h4>
									<span class="oa-contact-position mui-h6">董事长</span>
								</div>
								<p class="oa-contact-email mui-h6">
									yewenjie@sina.com
								</p>
							</div>
						</div>
					</div>
				</li>
				<li class="mui-table-view-cell">
					<div class="mui-slider-cell">
						<div class="oa-contact-cell mui-table">
							<div class="oa-contact-avatar mui-table-cell">
								<img src="/public/images/60x60.gif">
							</div>
							<div class="oa-contact-content mui-table-cell">
								<div class="mui-clearfix">
									<h4 class="oa-contact-name">艾AA</h4>
									<span class="oa-contact-position mui-h6">总经理</span>
								</div>
								<p class="oa-contact-email mui-h6">
									aaa@163.com
								</p>
							</div>
						</div>
					</div>
				</li>
				<li class="mui-table-view-cell">
					<div class="mui-slider-cell">
						<div class="oa-contact-cell mui-table">
							<div class="oa-contact-avatar mui-table-cell">
								<img src="/public/images/60x60.gif">
							</div>
							<div class="oa-contact-content mui-table-cell">
								<div class="mui-clearfix">
									<h4 class="oa-contact-name">罗辑</h4>
									<span class="oa-contact-position mui-h6">员工</span>
								</div>
								<p class="oa-contact-email mui-h6">
									luoji@126.com
								</p>
							</div>
						</div>
					</div>
				</li>
				<li class="mui-table-view-cell">
					<div class="mui-slider-cell">
						<div class="oa-contact-cell mui-table">
							<div class="oa-contact-avatar mui-table-cell">
								<img src="/public/images/60x60.gif">
							</div>
							<div class="oa-contact-content mui-table-cell">
								<div class="mui-clearfix">
									<h4 class="oa-contact-name">云天明</h4>
									<span class="oa-contact-position mui-h6">员工</span>
								</div>
								<p class="oa-contact-email mui-h6">
									ytm@163.com
								</p>
							</div>
						</div>
					</div>
				</li>
				<li class="mui-table-view-cell">
					<div class="mui-slider-cell">
						<div class="oa-contact-cell mui-table">
							<div class="oa-contact-avatar mui-table-cell">
								<img src="/public/images/60x60.gif">
							</div>
							<div class="oa-contact-content mui-table-cell">
								<div class="mui-clearfix">
									<h4 class="oa-contact-name">史强</h4>
									<span class="oa-contact-position mui-h6">员工</span>
								</div>
								<p class="oa-contact-email mui-h6">
									shiqiang@gmail.com
								</p>
							</div>
						</div>
					</div>
				</li>
			</ul>
			</div>-->
			
		</div>
	
	<script src="/public/js/mui.min.js"></script>
	
</body>
</html>
<script>
	//跳转
    $('.pl40').click(function () {
		var url = $(this).attr('_jump')
		location.href=url
    })
</script>